import VueRouter from 'vue-router';

import index from '../../components/index/index.vue';
import homepage from '../../components/index/homepage.vue';
import type from '../../components/index/type.vue';
import live from '../../components/index/live.vue';
import my from '../../components/index/my.vue';
import ShoppingCart from '../../components/index/ShoppingCart.vue';
import tootprint from '../../components/index/tootprint.vue';
import jxtj from '../../components/type/jxtj.vue'
import yyjk from '../../components/type/yyjk.vue'
import ssnz from '../../components/type/ssnz.vue'
import clnz from '../../components/type/clnz.vue'
import qjzp from '../../components/type/qjzp.vue'
import spjs from '../../components/type/spjs.vue'
import jjsh from '../../components/type/jjsh.vue'
import cfpj from '../../components/type/cfpj.vue'
import sjsm from '../../components/type/sjsm.vue'
import jydq from '../../components/type/jydq.vue'
import mzgh from '../../components/type/mzgh.vue'
import xxxb from '../../components/type/xxxb.vue'
import sxgs from '../../components/type/sxgs.vue'
import mytz from '../../components/type/mytz.vue'
import qcyp from '../../components/type/qcyp.vue'
import dnbg from '../../components/type/dnbg.vue'
import JingXuan from '../../components/homepage/JingXuan.vue'
import XieXue from '../../components/homepage/XieXue.vue'

export default new VueRouter({
    routes:[
           {
               path:'/',
               component:index,
               children:[
                   {
                       path:'/homepage',
                       component:homepage,
                       children:[
                           {
                               path:'/JingXuan',
                               component:JingXuan
                           },
                           {
                               path:'/XieXue',
                               component:XieXue
                           }
                       ],
                       redirect:'/JingXuan'
                   },
                   {
                       path:'/type',
                       component:type,
                       children:[
                           {
                               path:'/jxtj',
                               component:jxtj
                           },
                           {
                               path:'/yyjk',
                               component:yyjk
                           },
                           {
                               path:'/ssnz',
                               component:ssnz
                           },
                           {
                               path:'/clnz',
                               component:clnz
                           },
                           {
                               path:'/qjzp',
                               component:qjzp
                           },
                           {
                               path:'/spjs',
                               component:spjs
                           },
                           {
                               path:'/jjsh',
                               component:jjsh
                           },
                           {
                               path:'/cfpj',
                               component:cfpj
                           },
                           {
                               path:'/sjsm',
                               component:sjsm
                           },
                           {
                               path:'/jydq',
                               component:jydq
                           },
                           {
                               path:'/mzgh',
                               component:mzgh
                           },
                           {
                               path:'/xxxb',
                               component:xxxb
                           },
                           {
                               path:'/sxgs',
                               component:sxgs
                           },
                           {
                               path:'/mytz',
                               component:mytz
                           },
                           {
                               path:'/qcyp',
                               component:qcyp
                           },
                           {
                               path:'/dnbg',
                               component:dnbg
                           }
                       ],
                       redirect:'/jxtj'
                   },
                   {
                       path:'/live',
                       component:live
                   }
               ],
               redirect:'/homepage'
            },
            {
                path:'/my',
                component:my
            },
            {
                path:'/ShoppingCart',
                component:ShoppingCart
            },
            {
                path:'/tootprint',
                component:tootprint
            }
    ]
})